package com.woniuxy.cloud.carl.order.client;

import com.woniuxy.cloud.carl.order.client.param.AddServiceParam;
import com.woniuxy.cloud.carl.order.client.param.AddServiceTypeParam;
import com.woniuxy.cloud.carl.order.client.param.ChangeServiceCarParam;
import com.woniuxy.cloud.carl.order.client.param.ModifyServiceParam;
import com.woniuxy.cloud.carl.order.client.result.AddServiceDto;
import com.woniuxy.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "serviceManageClient",name = "order",path = "order")
public interface ServiceManageClient {


    @PostMapping("addService")
    public Result<AddServiceDto> addService(@RequestBody AddServiceParam param);

    //上下架
    @PutMapping("/modifyService")
    Result modifyServiceState(@RequestBody ModifyServiceParam param);

    @PostMapping("/addServiceCar")
    Result addServiceCare(@RequestBody ChangeServiceCarParam param);
    @DeleteMapping("/delServiceCar")
    Result delServiceCar(@SpringQueryMap ChangeServiceCarParam param);
    @PostMapping("/addServiceType")
    Result addServiceType(@RequestBody AddServiceTypeParam param);
}
